package haiyangwangwork.day01.homework;

public class Soldier {
    public String soldierJob;
    public String soldierName;
    public String soldierSkill;

    public Soldier(String soldierJob, String soldierName, String soldierSkill) {
        this.soldierJob = soldierJob;
        this.soldierName = soldierName;
        this.soldierSkill = soldierSkill;
    }
    public void skill(){
        String skill = null;
        this.soldierSkill=skill;
        System.out.println("士兵要好好学习枪法");
    }
}
